<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh">
<head>
        <title>TV信息列表</title>
    <jsp:include page="/WEB-INF/view/commons/css.jsp" />
</head>
<body >
<div id="main-container" class="container-fluid">
    <form action="biz4sinfo/dolist" method="post" name="searchForm" id="searchForm" role="form" class="form-horizontal">
        <div class="form-group">
            <label class="col-sm-1 control-label">版本</label>
            <div class="col-md-4">
                <d:select clazz="selectpicker" list="${sysVersions}" name="sysVersion" selected="${searchEntity.sysVersion}" ></d:select>
            </div>
            <label class="col-sm-1 control-label">升级</label>
            <div class="col-md-4">
                <d:select clazz="selectpicker" list="${upgraeds}" name="upgraed" selected="${searchEntity.upgraed}" ></d:select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-1 control-label">关键字</label>
            <div class="col-md-4">
                <div class="input-group">
                    <input type="text" class="form-control" name="keywords" value="${searchEntity.keywords}" placeholder="">
                    <div class="input-group-btn">
                        <button id="searchBtn" type="button" class="btn btn-sm btn-info"><i class="fa fa-search"></i> 搜索</button>
                    </div>
                </div>
            </div>
        </div>
    </form>
    <div class="row">
        <div class="col-md-10">
            <p>
                <shiro:hasPermission name="BIZ_4SINFO:add">
                    <button type="button" data-url="biz4sinfo/create" class="btn btn-sm btn-success link_add" data-title="新增门店信息"><i class="fa fa-plus"></i> 新增</button>
                </shiro:hasPermission>
                <shiro:hasPermission name="BIZ_4SINFO:edit">
                    <button type="button" data-url="biz4sinfo/edit" class="btn btn-sm btn-primary link_edit" data-title="编辑门店信息"><i class="fa fa-edit"></i> 修改</button>
                    <%--<a id="imp_menu_btn" href="javascript:void(0);" class="btn btn-xs btn-pink"><i class="icon-upload"></i>批量导入</a>--%>
                    <a id="export_menu_btn" href="biz4sinfo/export" class="btn btn-sm btn-pink "><i class="icon-share"></i>导出</a>
                </shiro:hasPermission>
                <shiro:hasPermission name="BIZ_4SINFO:delete">
                    <button type="button" data-url="biz4sinfo/delete" class="btn btn-sm btn-danger link_del"><i class="fa fa-trash"></i> 删除</button>
                </shiro:hasPermission>
                <shiro:hasPermission name="BIZ_4SINFO:view">
                    <button type="button" data-url="biz4sinfo/info" class="btn btn-sm link_info" data-title="门店信息详情"><i class="fa fa-book"></i> 详情</button>
                </shiro:hasPermission>
            </p>
        </div>
    </div>

    <table id="table_data" class="table table-striped table-bordered table-hover">
        <thead>
        <tr>
            <th class="center td-checkbox" width="5%">
                <label><input type="checkbox" class="check-all ace" data-tableid="table_data" /><span class="lbl"></span></label>
            </th>
            <th width="10%">经销商代码</th>
            <th width="10%">经销商名称</th>
            <th width="10%">TV-ID</th>
            <th width="10%">TV-密码</th>
            <th width="10%">服务器密码</th>
            <th width="10%">系统版本</th>
            <th width="10%">升级状态</th>
            <th width="10%">TV状态</th>
            <th width="10%">备注</th>
        </tr>
        </thead>
        <tbody>
        </tbody>
    </table>
</div>
<!-- 返回顶部  -->
<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
    <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
</a>
<!-- script start -->
<jsp:include page="/WEB-INF/view/commons/js.jsp" />
<script type="text/javascript">
    $(document).ready(function(e) {
        var table = $("#table_data").dataTable({
            ajax: function(data, callback, settings){
                tableAjax($("#searchForm"),data, callback, settings);
            },
            //列表表头字段
            columns: [
                mainConfig.checkboxColumn,
                { "data": "cord",name:"CORD",orderable:false },
                { "data": "name",name:"NAME",orderable:false },
                { "data": "tvId",name:"TV_ID",orderable:false },
                { "data": "tvPass",name:"TV_PASS",orderable:false },
                { "data": "serverPass",name:"SERVER_PASS",orderable:false },
                { "data": "sysVersionStr",name:"SYS_VERSION",orderable:false },
                { "data": "upgraedStr",name:"UPGRAEDS",orderable:false },
                { "data": "tvStatusStr",name:"TV_STATUS",orderable:false },
                { "data": "remark",name:"REMARK",orderable:false }
        ]
    }).api();

        //查询条件
        $("#searchForm").submit(function(){
            table.ajax.reload();
            return false;
        });

        $('#imp_menu_btn').click(function(){
            openIframe({
                title:'批量导入系统权限',
                url:'biz4sinfo/batchImportForm',
                width:'600px',
                height:'450px'
            });

        });
    });
</script>
<!-- script end -->
</body>
</html>